package com.gange.aspect;

import lombok.extern.slf4j.Slf4j;
import org.aspectj.lang.JoinPoint;
import org.aspectj.lang.annotation.Aspect;
import org.aspectj.lang.annotation.Before;
import org.springframework.core.annotation.Order;
import org.springframework.stereotype.Component;

@Component
@Aspect
@Slf4j
@Order(1)
public class MyAspect {
    @Before("@annotation(com.gange.aspect.annotation.LogAnnotation)")
    public void before(JoinPoint joinPoint){
        System.out.println("-------------打印日志----------------");
    }
}
